//导入axios
import axios from '@/utils'

//导出请求用户列表方法
export const getUserInfo = params => axios({url:'users',params})
//导出修改用户状态方法
export const editUserState = (uId,type) => axios({method:'put',url:`users/${uId}/state/${type}`})
//导出添加用户方法
export const addUser = addObj => axios({method:'post',url:'users',data:addObj})
//导出修改用户信息用户方法
export const editUserInfo = (id,email,mobile) => axios({method:'put',url:`users/${id}`,data:{email,mobile}})
//导出删除用户方法
export const delUserInfo = id => axios({url:`users/${id}`,method:'delete'})
//导出确定重新分配用户角色信息方法
export const fenUserRolse = (uId,rId) => axios({method:'put',url:`users/${uId}/role`,data:{rid:rId}})

